<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="customer-edit.aspx.cs" Inherits="admin_customer_edit" Title="Untitled Page" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <script type="text/javascript" src="<%=rootPath %>javascript/jquery.ui.core.js"></script>
    <script type="text/javascript" src="<%=rootPath %>javascript/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="<%=rootPath %>javascript/datetime/jquery.ui.datepicker.js"></script>
    <link href="../javascript/datetime/jquery-ui-1.8.8.custom.css" rel="stylesheet" type="text/css" />

    <div class="admin-function-top inline">
        <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
            DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
            CssClass="adminValidator" />
        <fieldset class="height-x">
            <legend>Personal Details </legend>
            <label>
                First Name</label>
            <asp:TextBox ID="tbxPersonalFirstName" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPersonalFirstName" runat="server" ControlToValidate="tbxPersonalFirstName"
                ErrorMessage="First Name is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator1" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revFirstName" ControlToValidate="tbxPersonalFirstName"
                EnableClientScript="true" ErrorMessage="Incorrect Text Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                <wuc:AdminValidator ID="Validator33" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Last Name</label>
            <asp:TextBox ID="tbxPersonalLastName" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPersonalLastName" runat="server" ControlToValidate="tbxPersonalLastName"
                ErrorMessage="Last Name is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator2" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revPersonalLastName" ControlToValidate="tbxPersonalLastName"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                <wuc:AdminValidator ID="Validator34" runat="server" />
            </asp:RegularExpressionValidator>
                <br />
            <label>
                Password</label>
            <asp:TextBox ID="txtPassword" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvtxtPassword" runat="server" ControlToValidate="txtPassword"
                ErrorMessage="Password is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Date of Birth</label>
            <asp:TextBox ID="tbxPersonalDateOfBirth" runat="server" CssClass="text"></asp:TextBox>
          
            <asp:RequiredFieldValidator ID="rfvPersonalDateOfBirth" runat="server" ControlToValidate="tbxPersonalDateOfBirth"
                ErrorMessage="Date of Birth is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator3" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revPersonalDateOfBirth" ControlToValidate="tbxPersonalDateOfBirth"
                EnableClientScript="true" ErrorMessage="Incorrect Date of Birth Format" SetFocusOnError="true"
                ValidationExpression="^(0[1-9]|1[0-2])/(0[1-9]|[1-2][0-9]|3[01])/([1-9][0-9][0-9][0-9])$">
                <wuc:AdminValidator ID="Validator28" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Email Address</label>
            <asp:TextBox ID="tbxPersonalEmailAddress" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPersonalEmailAddress" runat="server" ControlToValidate="tbxPersonalEmailAddress"
                ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator5" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revPersonalEmailAddress" ControlToValidate="tbxPersonalEmailAddress"
                EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                <wuc:AdminValidator ID="Validator29" runat="server" />
            </asp:RegularExpressionValidator>
         
            <br />
            <label>
                Gender</label>
            <asp:RadioButton ID="rbtMale" runat="server" GroupName="rbtGender" Checked="True" />
            <label>
                Male</label>
            <asp:RadioButton ID="rbtFemale" runat="server" GroupName="rbtGender" />
            <label>
                Female
            </label>
             <br />
            <label>
                Active User</label>
            <asp:CheckBox ID="chkActiveUser" runat="server" />
        </fieldset>
        <fieldset class="height-x">
            <legend>Contact Information </legend>
            <label>
                Telephone Number</label>
            <asp:TextBox ID="tbxContactPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvContactPhoneNumber" runat="server" ControlToValidate="tbxContactPhoneNumber"
                ErrorMessage="Contact Telephone Number is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator15" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revContactPhoneNumber" ControlToValidate="tbxContactPhoneNumber"
                EnableClientScript="true" ErrorMessage="Incorrect Phone Format" SetFocusOnError="true"
                ValidationExpression="^\d{3}-\d{3}-\d{4}$">
                <wuc:AdminValidator ID="Validator42" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Secondary Telephone Number</label>
            <asp:TextBox ID="tbxContactFaxNumber" runat="server" CssClass="text"></asp:TextBox>
            <br />
        </fieldset>
        <fieldset class="height-x-2">
            <legend>Billing Address </legend>
            <label>
                First Name</label>
            <asp:TextBox ID="tbxBillingFirstName" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingFirstName" runat="server" ControlToValidate="tbxBillingFirstName"
                ErrorMessage="Billing Address First Name is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator7" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revBillingFirstName" ControlToValidate="tbxBillingFirstName"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                <wuc:AdminValidator ID="Validator35" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Last Name</label>
            <asp:TextBox ID="tbxBillingLastName" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingLastName" runat="server" ControlToValidate="tbxBillingLastName"
                ErrorMessage="Billing Address Last Name is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator8" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revBillingLastName" ControlToValidate="tbxBillingLastName"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                <wuc:AdminValidator ID="Validator36" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Address Line 1</label>
            <asp:TextBox ID="tbxBillingAddressLine1" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingAddressLine1" runat="server" ControlToValidate="tbxBillingAddressLine1"
                ErrorMessage="Billing Address Line 1 is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator9" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Address Line 2</label>
            <asp:TextBox ID="tbxBillingAddressLine2" runat="server" CssClass="text"></asp:TextBox>
            <br />
            <label>
                City</label>
            <asp:TextBox ID="tbxBillingCity" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingCity" runat="server" ControlToValidate="tbxBillingCity"
                ErrorMessage="Billing Address City is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator11" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                State</label>
            <ucc:StateDropDownList ID="uccBillingState" runat="server" UseFirstItem="true" CssClass="input1"
                Style="width: 155px; background-color: rgb(255, 255, 160);" FirstItemText="None / Other"
                FirstItemValue="NA">
            </ucc:StateDropDownList>
            <asp:RequiredFieldValidator ID="rfvBillingState" runat="server" ControlToValidate="uccBillingState"
                ErrorMessage="Billing Address State is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator12" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Zip Code</label>
            <asp:TextBox ID="tbxBillingZipCode" runat="server" CssClass="text" Width="52px" MaxLength="5"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingZipCode" runat="server" ControlToValidate="tbxBillingZipCode"
                ErrorMessage="Billing Address Zip Code is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator13" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revBillingZipCode" ControlToValidate="tbxBillingZipCode"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^\d{5}$">
                <wuc:AdminValidator ID="Validator40" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Country</label>
            <ucc:CountryDropDownList ID="uccBillingCountry" CssClass="input1" runat="server"
                Style="width: 155px; background-color: rgb(255, 255, 160);">
            </ucc:CountryDropDownList>
            <asp:RequiredFieldValidator ID="rfvBillingCountry" runat="server" ControlToValidate="uccBillingCountry"
                ErrorMessage="Billing Address Country is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator14" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Email Address</label>
            <asp:TextBox ID="tbxBillingEmailAddress" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingEmailAddress" runat="server" ControlToValidate="tbxBillingEmailAddress"
                ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator44" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revBillingEmailAddress" ControlToValidate="tbxBillingEmailAddress"
                EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                <wuc:AdminValidator ID="Validator45" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Telephone Number</label>
            <asp:TextBox ID="tbxBillingPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBillingPhoneNumber" runat="server" ControlToValidate="tbxBillingPhoneNumber"
                ErrorMessage="Billing Telephone Number is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator46" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revBillingPhoneNumber" ControlToValidate="tbxBillingPhoneNumber"
                EnableClientScript="true" ErrorMessage="Incorrect Phone Format" SetFocusOnError="true"
                ValidationExpression="^\d{3}-\d{3}-\d{4}$">
                <wuc:AdminValidator ID="Validator47" runat="server" />
            </asp:RegularExpressionValidator>
        </fieldset>
        <fieldset class="height-x-2">
            <legend>Shipping Address </legend>
        <%--    <input type="checkbox" id="cbxCopyBillingInfo" onclick="javascript:CopyBillingInfo()" />Shipping
            same as Billing
            <br />--%>
            <label>
                First Name</label>
            <asp:TextBox ID="tbxShippingFirstName" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingFirstName" runat="server" ControlToValidate="tbxShippingFirstName"
                ErrorMessage="Shipping Address First Name is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator16" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revShippingFirstName" ControlToValidate="tbxShippingFirstName"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                <wuc:AdminValidator ID="Validator37" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Last Name</label>
            <asp:TextBox ID="tbxShippingLastName" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingLastName" runat="server" ControlToValidate="tbxShippingLastName"
                ErrorMessage="Shipping Address Last Name is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator17" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revShippingLastName" ControlToValidate="tbxShippingLastName"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                <wuc:AdminValidator ID="Validator38" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Address Line 1</label>
            <asp:TextBox ID="tbxShippingAddressLine1" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingAddressLine1" runat="server" ControlToValidate="tbxShippingAddressLine1"
                ErrorMessage="Shipping Address Line 1 is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator18" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Address Line 2</label>
            <asp:TextBox ID="tbxShippingAddressLine2" runat="server" CssClass="text"></asp:TextBox>
            <br />
            <label>
                City</label>
            <asp:TextBox ID="tbxShippingCity" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingCity" runat="server" ControlToValidate="tbxShippingCity"
                ErrorMessage="Shipping Address City is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator20" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                State</label>
            <ucc:StateDropDownList ID="uccShippingState" runat="server" UseFirstItem="true" CssClass="input1"
                Style="width: 155px; background-color: rgb(255, 255, 160);" FirstItemText="None / Other"
                FirstItemValue="NA">
            </ucc:StateDropDownList>
            <asp:RequiredFieldValidator ID="rfvShippingState" runat="server" ControlToValidate="uccShippingState"
                ErrorMessage="Shipping Address State is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator21" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Zip Code</label>
            <asp:TextBox ID="tbxShippingZipCode" runat="server" CssClass="text" size="5"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingZipCode" runat="server" ControlToValidate="tbxShippingZipCode"
                ErrorMessage="Shipping Address Zip Code is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator22" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revShippingZipCode" ControlToValidate="tbxShippingZipCode"
                EnableClientScript="true" ErrorMessage="Incorrect Name Format" SetFocusOnError="true"
                ValidationExpression="^\d{5}$">
                <wuc:AdminValidator ID="Validator39" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Country</label>
            <ucc:CountryDropDownList ID="uccShippingCountry" CssClass="input1" runat="server"
                Style="width: 155px; background-color: rgb(255, 255, 160);">
            </ucc:CountryDropDownList>
            <asp:RequiredFieldValidator ID="rfvShippingCountry" runat="server" ControlToValidate="uccShippingCountry"
                ErrorMessage="Shipping Address Country is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator23" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Email Address</label>
            <asp:TextBox ID="tbxShippingEmailAddress" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingEmailAddress" runat="server" ControlToValidate="tbxShippingEmailAddress"
                ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator48" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revShippingEmailAddress" ControlToValidate="tbxShippingEmailAddress"
                EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                <wuc:AdminValidator ID="Validator49" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Telephone Number</label>
            <asp:TextBox ID="tbxShippingPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvShippingPhoneNumber" runat="server" ControlToValidate="tbxShippingPhoneNumber"
                ErrorMessage="Shipping Telephone Number is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
                <wuc:AdminValidator ID="Validator50" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revShippingPhoneNumber" ControlToValidate="tbxShippingPhoneNumber"
                EnableClientScript="true" ErrorMessage="Incorrect Phone Format" SetFocusOnError="true"
                ValidationExpression="^\d{3}-\d{3}-\d{4}$">
                <wuc:AdminValidator ID="Validator51" runat="server" />
            </asp:RegularExpressionValidator>
        </fieldset>
        <fieldset>
        <legend>Admin Comment</legend>
        <asp:TextBox ID="tbxAdminComment" runat="server" TextMode="MultiLine"></asp:TextBox>
        </fieldset>
        <div class="btn-place-holder">
            <asp:Button ID="imgSaveBottom" runat="server" CssClass="button medium black" AlternateText=" "
                Text="Save" OnClick="Create_Click" />
            <br class="clear" />
        </div>
        <br class="clear" />
    </div>
    <script language="javascript" type="text/javascript">
        function ResetFields() {
            $('<%= tbxPersonalFirstName.ClientID %>').value = '';
            $('<%= tbxPersonalLastName.ClientID %>').value = '';
            $('<%= tbxPersonalDateOfBirth.ClientID %>').value = '';
            $('<%= tbxPersonalEmailAddress.ClientID %>').value = '';
            $('<%= tbxContactPhoneNumber.ClientID %>').value = '';
            $('<%= tbxContactFaxNumber.ClientID %>').value = '';
            $('<%= tbxBillingFirstName.ClientID %>').value = '';
            $('<%= tbxBillingLastName.ClientID %>').value = '';
            $('<%= tbxBillingAddressLine1.ClientID %>').value = '';
            $('<%= tbxBillingAddressLine2.ClientID %>').value = '';
            $('<%= tbxBillingCity.ClientID %>').value = '';
            $('<%= tbxBillingZipCode.ClientID %>').value = '';
            $('<%= tbxBillingPhoneNumber.ClientID %>').value = '';
            $('<%= tbxBillingEmailAddress.ClientID %>').value = '';
            $('<%= tbxShippingFirstName.ClientID %>').value = '';
            $('<%= tbxShippingLastName.ClientID %>').value = '';
            $('<%= tbxShippingAddressLine1.ClientID %>').value = '';
            $('<%= tbxShippingAddressLine2.ClientID %>').value = '';
            $('<%= tbxShippingCity.ClientID %>').value = '';
            $('<%= tbxShippingZipCode.ClientID %>').value = '';
            $('<%= tbxShippingPhoneNumber.ClientID %>').value = '';
            $('<%= tbxShippingEmailAddress.ClientID %>').value = '';
            $('<%=uccBillingState.ClientID%>').options[0].selected = true;
            $('<%=uccBillingCountry.ClientID%>').options[0].selected = true;
            $('<%=uccShippingState.ClientID%>').options[0].selected = true;
            $('<%=uccShippingCountry.ClientID%>').options[0].selected = true;
            $('cbxCopyBillingInfo').checked = false;
        }

        function CopyBillingInfo() {
            if ($('cbxCopyBillingInfo').checked) {
                $('<%= tbxShippingFirstName.ClientID %>').value = $('<%= tbxBillingFirstName.ClientID %>').value;
                $('<%= tbxShippingLastName.ClientID %>').value = $('<%= tbxBillingLastName.ClientID %>').value;
                $('<%= tbxShippingAddressLine1.ClientID %>').value = $('<%= tbxBillingAddressLine1.ClientID %>').value;
                $('<%= tbxShippingAddressLine2.ClientID %>').value = $('<%= tbxBillingAddressLine2.ClientID %>').value;
                $('<%= tbxShippingCity.ClientID %>').value = $('<%= tbxBillingCity.ClientID %>').value;
                $('<%= tbxShippingZipCode.ClientID %>').value = $('<%= tbxBillingZipCode.ClientID %>').value;
                $('<%= tbxShippingPhoneNumber.ClientID %>').value = $('<%= tbxBillingPhoneNumber.ClientID %>').value;
                $('<%= tbxShippingEmailAddress.ClientID %>').value = $('<%= tbxBillingEmailAddress.ClientID %>').value;
                $('<%=uccShippingState.ClientID%>').selectedIndex = $('<%=uccBillingState.ClientID%>').selectedIndex;
                $('<%=uccShippingCountry.ClientID%>').selectedIndex = $('<%=uccBillingCountry.ClientID%>').selectedIndex;
            }
        }

        $(function () {
            $("#<%= tbxPersonalDateOfBirth.ClientID %>#").datepicker({
                changeMonth: true,
                changeYear: true
            });
        });
    </script>
</asp:Content>
